<?php
/**
 * Created by PhpStorm.
 * User: Admin
 * Date: 2018/7/25
 * Time: 18:06
 */
namespace app\common\model;

use think\Model;

class FeedBack extends Model
{
    protected $name='feed_back';

    protected $autoWriteTimestamp='int';

    protected $createTime='createtime';

    protected $updateTime='updatetime';

    protected $append=['from_text'];

    public function getFromTextAttr($value,$data)
    {
        $list=[1=>'web',2=>'app'];
        return $list[$data['from']];
    }

}